package com.com.typhoon.controller;

import com.com.typhoon.util.JwtUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/25 下午6:13
 * @description
 * @modified by
 * @since V2.0.0
 */
@RestController
public class IndexController {

    @GetMapping("/hello")
    public String hello() {
        return "hello world";
    }

    @GetMapping("/login")
    public String login() {
        return JwtUtil.generateJwt("Typhoon","1",10L,JwtUtil.SALT);

    }



}
